package com.dependency.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class Service2 {
    @Autowired
    Service1 service1;

    @Async
    public void f1(){
        System.out.println("service2");
    }
}
